package team.zero.lemon.module.cms.service;

import org.springframework.stereotype.Service;
import team.zero.lemon.common.exception.CustomException;
import team.zero.lemon.common.service.CrudService;
import team.zero.lemon.module.cms.dao.IArticleDataDao;
import team.zero.lemon.module.cms.entity.ArticleData;

import java.util.List;

/**
 * Created by bolin on 2016/10/25.
 */
@Service
public class ArticleDataServie extends CrudService<IArticleDataDao, ArticleData> {
    public ArticleData findByArticleId(int  articleId) {
        try {
            return dao.findByArticleId(articleId);
        } catch (Exception e) {
            throw new CustomException(e);
        }
    }
}
